// src/styles/multimetricgraph.scss
.multi-metric-graph {
  position: relative;
  margin: 1rem 0;
  width: 100%;
  height: 100%;

  .title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
  }

  .chart-container {
    position: relative;
    width: 100%;
    height: calc(100% - 30px);
  }

  svg {
    overflow: visible;

    .line {
      fill: none;
      stroke-width: 1.5px;
      stroke-linejoin: round;
      stroke-linecap: round;
    }
  }

  .axis {
    path, line {
      fill: none;
      stroke: #666;
      shape-rendering: crispEdges;
    }

    text {
      fill: #666;
      font-size: 0.8rem;
    }
  }

  .tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    pointer-events: none;
    font-family: sans-serif;
    font-size: 12px;
    z-index: 100;

    .tooltip-item {
      display: flex;
      align-items: center;
      margin: 3px 0;
    }

    .tooltip-color {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin-right: 8px;
      border-radius: 2px;
    }
  }

  .legend {
    rect {
      stroke: #fff;
      stroke-width: 1px;
    }

    text {
      font-size: 0.8rem;
      fill: #666;
    }
  }
}
